<!--
 * @Description: Element.prototype
 * @Author: zzj
 * @Date: 2021-09-13 12:02:35
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-13 12:08:16
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Element.prototype</title>
</head>
<body>
    <div id="a1">div</div>
    <img id="i">
    <script>
        var a1 = document.getElementById("a1");
        console.log(a1,id);
        a1.className = "red";
        a1.title = "标题";
        var i = document.getElementById("i");
        i.src = "";  //动态修改一个图片的地址
    </script>
</body>
</html>